import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

const geoBasicRoutes: RouteRecordRaw[] = [
    {
        path: '/geo-basic',
        component: Layout,
        redirect: '/geo-basic/project-management',
        name: 'GEOBasic',
        meta: { title: 'Geo营销', icon: 'color-filter-ai-line' },
        children: [
            {
                path: 'project-management',
                name: 'GEOBasicProjectManagement',
                meta: { title: '项目管理' },
                children: [
                    {
                        path: 'project-add',
                        component: () => import('@/views/geoBasic/project/ProjectAdd.vue'),
                        name: 'GEOBasicProjectAdd',
                        meta: { title: '添加项目' },
                        children: []
                    },
                    {
                        path: 'distillation-add',
                        component: () => import('@/views/geoBasic/project/DistillationAdd.vue'),
                        name: 'GEOBasicDistillationAdd',
                        meta: { title: '添加蒸馏词' },
                        children: []
                    },
                    {
                        path: 'distillation-list',
                        component: () => import('@/views/geoBasic/project/DistillationList.vue'),
                        name: 'GEOBasicDistillationList',
                        meta: { title: '蒸馏词问题列表' },
                        children: []
                    },
                    {
                        path: 'distillation-intro',
                        component: () => import('@/views/geoBasic/project/DistillationIntro.vue'),
                        name: 'GEOBasicDistillationIntro',
                        meta: { title: '蒸馏词介绍' },
                        children: []
                    },
                    {
                        path: 'article/list/:id',
                        component: () => import('@/views/geoBasic/project/Article/List.vue'),
                        name: 'GEOBasicArticleList',
                        meta: { title: '文章列表' },
                        children: []
                    },
                    {
                        path: 'article/detail/:id',
                        component: () => import('@/views/geoBasic/project/Article/Detail.vue'),
                        name: 'GEOBasicArticleDetail',
                        meta: { title: '文章详细',hidden:true },
                        children: []
                    },
                    {
                        path: 'article/edit/:id',
                        component: () => import('@/views/geoBasic/project/Article/Edit.vue'),
                        name: 'GEOBasicArticleEdit',
                        meta: { title: '文章修改',hidden:true },
                        children: []
                    },
                    {
                        path: 'article/statistics/:id',
                        component: () => import('@/views/geoBasic/project/Article/Statistics.vue'),
                        name: 'GEOBasicArticleStatistics',
                        meta: { title: '文章发布列表',hidden:true },
                        children: []
                    }
                ]
            },
            {
                path: 'report',
                component: () => import('@/views/geoBasic/report/index.vue'),
                name: 'GEOBasicReport',
                meta: { title: '效果报表' },
                children: []
            },
            {
                path: 'historical-ranking',
                name: 'GEOBasicHistoricalRanking',
                meta: { title: '历史排名' },
                children: [
                    {
                        path: 'time',
                        component: () => import('@/views/geoBasic/history/Time.vue'),
                        name: 'GEOBasicHRTime',
                        meta: { title: '每次排名' },
                        children: []
                    },
                    {
                        path: 'month',
                        component: () => import('@/views/geoBasic/history/Month.vue'),
                        name: 'GEOBasicHRMonth',
                        meta: { title: '每月排名' },
                        children: []
                    }
                ]
            }
        ]
    }
]

export default geoBasicRoutes;